home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Astronomy / Moon / Source / MoonView.h < prev    next >
Text File  |  1993-01-19  |  835b  |  44 lines

  1. /* MoonView.h
  2.  * Part of the Moon application for the NeXT computer.
  3.  * Author:  Geoffrey S. Knauth
  4.  * Date:    January 4, 1992
  5.  *
  6.  * Permission to copy this program is hereby granted under the terms
  7.  * of the Free Software Foundation's General Public License.
  8.  */
  9.  
  10.  
  11. /* Initially generated by Interface Builder */
  12.  
  13. #import <appkit/View.h>
  14. #import "all.h"
  15.  
  16. struct moonInfo {
  17.     float top, bottom, left, right;
  18. };
  19.  
  20. @interface MoonView : View
  21. {
  22.   /* initialized in initFrame: */
  23.     id image;
  24.     NXPoint center;
  25.     float xradius, yradius;
  26.     float phase;        /* 0.0 .. 1.0 */
  27.  
  28.   /* initialized in mouseDown: */
  29.     id hugeWindow;
  30.     id hugeMoonView;
  31.  
  32. }
  33.  
  34. - initFrame :(const NXRect *)frameRect;
  35. - drawSelf :(const NXRect *)rects :(int)rectCount;
  36. - free;
  37.  
  38. - mouseDown:(NXEvent *)theEvent;
  39.  
  40. - (float)phase;
  41. - setPhase :(float)phase;
  42.  
  43. @end
  44.